<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>多层对象的解构</title>
</head>
<body>
    <script>
        let hd = {
            name : "js",
            lesson : {
                price : 18,
                click : 99
            }
        };

        let {name} = hd;
        console.log(name);


        // let {lesson:lesson} = hd;
        // let {price} = lesson;

        let {lesson:{price}} = hd;
        console.log(price);
    </script>
</body>
</html>